

package Controllers;

import Interfaces.ILogin;
import javax.swing.JOptionPane;


public class Login implements ILogin
{
    
    @Override
 public void ValidateLogin(String username , String password)
 {
    
    if (username.isEmpty() || password.isEmpty())
    {
        JOptionPane.showMessageDialog(null,"Username or Password Empty, Try Again");
        
    }
    
    else if (username.equals(password)) //TODO   put code for SQL connection
    {
        JOptionPane.showMessageDialog(null,"Success");
        
        
    }
    
    else //TODO   remove this else when 'put code for SQL connection'
    {
        JOptionPane.showMessageDialog(null,"You Typed Something Wrong Please Try Again");
        
    }
     
    
     
 }
    
    
}
